package middleware

import (
	"haiqiu-go-admin/config"
	"net/http"
)

// 静态文件
func StaticFileServer() (string, http.Handler) {
	return config.AppConfig.Http.Virtual, http.StripPrefix(config.AppConfig.Http.Virtual,
		http.FileServer(http.Dir(config.AppConfig.Http.Parent)))
}
